@groupList: group-voting-list;

.@{groupList} {
  height: 100%;
  position: relative;
  .ant-spin-spinning {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
  }
  .ellipsis {
    overflow: hidden;
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  &-list {
    height: 100%;
    position: relative;
    &-header {
      height: 50px;
      width: 100%;
      line-height: 50px;
      padding: 0 10px;
      border-bottom: 1px solid #EAEAEA;
      box-sizing: border-box;
      display: flex;
      justify-content: space-between;
      &-search, &-search>div {
        width: 100%;
      }
      &-publish {
        margin-left: 16px;
        margin-right: 6px;
      }
    }
    &-container {
      position: absolute;
      width: 100%;
      top: 50px;
      bottom: 0;
      &-list {
        position: relative;
        &-title {
          overflow: hidden;
          vertical-align: middle;
          >span {
            padding: 6px 0px;
            display: inline-block;
          }
          .ant-btn {
            float: right;
          }
        }
        &-share {
          display: inline-block;
          position: absolute;
          right: 36px;
          top: 6px;
        }
      }
    }
    &.showDetail {
      width: 42%;
      float: left;
      .wea-new-table>div>div {
        width: calc(~'100% - 7px') !important;
      }
      .wea-table-pagination {
        text-align: center;
        .ant-pagination {
          display: inline-block;
          float: none;
          margin-top: 24px;
        }
      }
    }
  }
  &-leftlist {
    border-bottom: 1px solid #EAEAEA;
    padding: 10px 12px;
  }
  /* 左侧列表 */
  &-leftList {
    height: 100%;
    &-scroll {
      max-height: calc(100% - 68px) !important;
      overflow-y: auto;
    }
    &-line {
      border-bottom: 1px solid #e2e2e2;
      :hover {
        background: #e9f7ff;
      }
      .active {
        background: #e9f7ff;
      }
      &-item {
        padding: 10px 18px 9px 12px;
      }
    }
    &-pagination {
      text-align: center;
      padding: 24px 0;
      .ant-pagination {
        display: inline-block;
      }
    }
  }

  /* 详情 */
  &-detail {
    display: none;
    height: 100%;
    width: 58%;
    box-sizing: border-box;
    overflow: hidden;
    float: left;
    position: relative;
    &.isShow {
      display: block;
      border-left: 1px solid #E2E2E2;
      box-shadow: -9px 5px 7px -7px #E2E2E2;
    }
    >.ant-spin-spinning {
      >span {
        position: absolute;
        margin: auto;
        top: 0;
        bottom: 0;
        left: 0;
        right: 0;
      }
    }
    &-box {
      height: 100%;
      overflow-x: hidden;
      overflow-y: auto;
      &.hasBtn {
        height: calc(~'100% - 40px');
      }
    }
    &-publish {
      border-radius: 0;
      width: 100%;
      height: 40px;
    }
    &-header {
      position: relative;
      border-bottom: 1px solid #ddd;
      cursor: pointer;
      &-box {
        width: calc(100% - 30px);
        display: inline-block;
        padding: 9px 11px;
      }
      &-theme {
        word-break: break-all;
        span.theme {
          font-size: 14px;
        }
      }
      &-info {
        margin-top: 5px;
        .creater {
          color: #4d7ad8;
        }
        .time {
          color: #868686;
          margin-left: 10px;
        }
        >div {
          display: inline-block;
          vertical-align: bottom;
        }
      }
      .icon-coms-Clear {
        font-size: 20px;
        color: #868686;
        position: absolute;
        top: 14px;
      }
    }
    &-themeImg {
      text-align: center;
      padding-top: 10px;

      >img {
        width: 157px;
        height: 117px;
        cursor: pointer;
        object-fit: cover;
      }
    }
    &-container {
      padding: 10px 17px;
      &-title {
        border-bottom: 1px solid #ddd;
        height: 30px;
        line-height: 30px;
        margin-bottom: 12px;
        padding-bottom: 6px;
      }
      &-endTime {
        color: #999999;
        display: flex;
        justify-content: space-between;
        line-height: 17px;
      }
      .ant-checkbox-group {
        color: #333;
        .ant-checkbox-group-item {
          display: block;
          line-height: 24px;
          margin-bottom: 5px;
        }
        .ant-checkbox-wrapper+.ant-checkbox-wrapper {
          margin-left: 0;
        }
      }
      &-optionItem {
        .title {
          padding-left: 20px;
          position: relative;
          .content {
            word-break: break-word;
            .icon-coms-complete {
              position: absolute;
              left: 0;
              bottom: 2px;
            }
          }
        }
        .count {
          float: right;
          padding-right: 8px;
        }
        .ant-progress {
          position: relative;
          top: -5px;
          .ant-progress-inner {
            .ant-progress-bg {
              height: 2px !important;
            }
          }
        }
        .@{groupList}-detail-options-line-imgs {
          margin-left: 0;
        }
        &:not(:first-child) {
          margin-top: 11px;
        }
      }
    }
    /* 选择 */
    &-options {
      &-line {
        color: #333;
        margin-bottom: 15px;
        // border-bottom: 1px solid #ddd;
        &-imgs {
          margin-left: 21px;
          margin-top: 6px;
          >img {
            width: 124px;
            height: 92px;
            cursor: pointer;
            object-fit: cover;
          }
          >img:not(:nth-child(3n)) {
            margin-right: 12px;
          }
        }
        /* 单项选择 */
        &-radio {
          width: 100%;
          line-height: 24px;
          word-break: break-all;
          white-space: pre-wrap;
        }
        /* 多项选择 */
        &-checkbox {
          position: relative;
          >span {
            display: inline-block;
          }
          span.ant-checkbox {
            position: absolute;
            top: 50%;
            transform: translateY(-50%);
          }
          .ant-checkbox+span {
            word-break: break-word;
            padding-left: 15px;
          }
        }
      }
    }

    &-peopleList {
      padding: 0px 17px 10px 17px;
      color: #333;
      border-top: 1px solid #ddd;
      &-title {
        padding: 10px 0;
        >span.todetail {
          float: right;
          cursor: pointer;
          .icon-coms-Right {
            font-size: 10px;
            color: #979797;
          }
        }
      }
      &-person {
        &-item {
          display: inline-block;
          margin-bottom: 10px;
          padding: 0 10px; 
          text-align: center;
          .name {
            // max-width: 45px;
            // white-space: nowrap;
            // text-overflow: ellipsis;
            // overflow: hidden;
            cursor: pointer;
          }
        }
      }
    }
  }

  &-item {
    cursor: pointer;
    &.ant-row:before {
      content: "";
    }
    &-info {
      &-theme {
        color: #333;
        padding-bottom: 3px;
        word-break: break-word;
      }
      &-creater {
        color: #999999;
        line-height: 17px;
      }
    }
    &-ops {
      position: relative;
      .icon-coms-Delete {
        color: #B2B2B2;
        font-size: 16px;
        position: absolute;
        top: 15px;
        cursor: pointer;
      }
    }
  }

  /* 新建 */
  &-new {
    .ant-spin-nested-loading {
      height: 100%;
    }
    &-formcontainer {
      padding-left: 35px;
      padding-right: 11px;
    }
    &-themeImg {
      display: inline-block;
      position: relative;
      >img {
        width: 157px;
        height: 117px;
        cursor: pointer;
        object-fit: cover;
      }
      .icon-coms-Clear {
        color: #757575;
        position: absolute;
        top: -4px;
        right: -8px;
        font-size: 16px;
        cursor: pointer;
      }
    }
    &-uploadImg {
      .icon-coms-AddTo {
        font-size: 49px;
      }
    }

    &-voteOptions {
      &-item {
        margin-bottom: 5px;
        .addImage {
          .wea-upload {
            .wea-upload-container {
              position: relative;
              top: 4px;
              float: right;
            }
            .icon-portal-photo-o {
              font-size: 20px;
              color: #B2B2B2;
              cursor: pointer;
            }
          }
        }
        .icon-coms02-Delete {
          color: #B2B2B2;
          font-size: 16px;
          position: relative;
          top: 6px;
          float: right;
          cursor: pointer;
        }
      }
      &-optionImg {
        &-item {
          display: inline-block;
          position: relative;
          margin-right: 12px;
          >img {
            width: 124px;
            height: 92px;
            cursor: pointer;
            object-fit: cover;
          }
          .icon-coms-Clear {
            color: #757575;
            position: absolute;
            top: -4px;
            right: -8px;
            font-size: 16px;
            cursor: pointer;
          }
        }
      }
    }

    .group-vote-form {
      &-checkmode {
        .wea-select {
          width: auto;
        }
        .@{groupList}-new-inputNum {
          .input {
            width: 60px;
          }
          .wea-helpful-tip {
            margin-left: 6px;
          }
        }
      }
      &-maxvoteoption {
        .@{groupList}-new-inputNum {
          .input {
            width: 60px;
            margin: 0 16px 0 4px;
          }
        }
      }
      &-votesec {
        .wea-select {
          width: auto;
        }
        .tip {
          color: #757575;
        }
      }
      &-voteoption {
        .@{groupList}-new-voteOptions-item {
          .wea-error {
            width: 100%;
          }
        }
      }
    }
  }
}